﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace UtilsORM.MySqlData;

/// <summary>
/// 设备LOGO
/// </summary>
[Index("df_url", Name = "idcode", IsUnique = true)]
[Index("df_guid", Name = "idxdguid", IsUnique = true)]
[MySqlCharSet("utf8mb3")]
[MySqlCollation("utf8mb3_general_ci")]
public partial class iot_device_logo
{
    [Key]
    public long df_id { get; set; }

    [Required]
    public string df_guid { get; set; }

    /// <summary>
    /// 设备id
    /// </summary>
    [StringLength(255)]
    public string df_d_guid { get; set; }

    /// <summary>
    /// LOGO地址
    /// </summary>
    [Required]
    [StringLength(50)]
    public string df_url { get; set; }

    [Column(TypeName = "datetime")]
    public DateTime? df_mod_time { get; set; }

    [Column(TypeName = "datetime")]
    public DateTime? df_add_time { get; set; }
}
